package cn.edu.bjfu.practice.practice.teacher.pojo.query;

import jdk.jfr.BooleanFlag;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

public class AddStudentForm {

    @NotBlank
    private String name;

    @BooleanFlag
    private Boolean sex;

    @NotBlank
    private String grade;

    @Range(min = 0)
    private Integer course_id;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public Integer getCourse_id() {
        return course_id;
    }

    public void setCourse_id(Integer course_id) {
        this.course_id = course_id;
    }
}
